[VTPM] Fixed typo in VTPM manager.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 11 Jul 2007 09:56:52 +0000 (10:56 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 11 Jul 2007 09:56:52 +0000 (10:56 +0100)
Replaces an instance of pthread_mutex_lock() that should be
pthreaad_mutex_unlock(). With thanks to our OpenTC partners at the
Technical University of Sofia, whose static analysis found this bug.

Signed-off-by: Derek G. Murray <Derek.Murray@cl.cam.ac.uk>
tools/vtpm_manager/util/hashtable_itr.c

index 2a2748973372b093ff9d3216c9ea7f04a29d045b..5586f061f535e6f7d6f70e6702f48b30ca885a4f 100644 (file)
@@ -225,7 +225,7 @@ hashtable_iterator_search(struct hashtable_itr *itr,
     
 egress:
 #ifdef HASHTABLE_THREADED
-    pthread_mutex_lock(&h->mutex);
+    pthread_mutex_unlock(&h->mutex);
 #endif 
     return ret;
 }